package com.xyq.friend.service.question;

import com.xyq.api.domain.vo.UserQuestionResultVO;
import com.xyq.common.core.constants.HttpConstants;
import com.xyq.common.core.domain.Result;
import com.xyq.friend.domain.question.QuestionResultVO;
import com.xyq.friend.domain.user.dto.UserSubmitDTO;
import org.springframework.web.bind.annotation.RequestHeader;

public interface UserQuestionService {
    Result<UserQuestionResultVO> submit(UserSubmitDTO userSubmitDTO ,
                                        @RequestHeader(HttpConstants.AUTHENTICATION) String token);

    boolean rabbitSubmit(UserSubmitDTO userSubmitDTO);

    QuestionResultVO judgeResult(Long questionId, Long examId, String currentTime);
}
